package com.hnevc.mallserver3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnevc.mallserver3.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    @Select("select id,username,phone,area,detail,member_id from t_address where member_id = #{memberId}")
    List<Address> selectByMemberId(Long memberId);
    // 这里可以添加一些非通用的方法
}